package com.yqy.trans;

import com.yqy.classification.SalariedClassification;

public class ChangeSalariedTransaction extends ChangeClassificationTransaction {

    private double monthlySalary;

    public ChangeSalariedTransaction(int empId, double monthlySalary) {
        super(empId);
        this.monthlySalary = monthlySalary;
    }

    @Override
    protected SalariedClassification getPaymentClassification() {
        return new SalariedClassification(monthlySalary);
    }

}
